package cn.tedu.bonfire.front.content.dao.persist.mapper;

import cn.tedu.bonfire.common.pojo.entity.Inform;
import cn.tedu.bonfire.front.content.pojo.vo.InformVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;


import java.util.List;
@Repository
public interface InformMapper extends BaseMapper<Inform> {

    int countNewInforms(Long userId,Integer type);

    /**
     *获取新通知
     */
    List<InformVO> listNewInformsByType(Long userId, Integer type);

    /**
     *获取所有通知
     */
    List<InformVO> listAllInforms(Long userId,Integer type);


}
